package org.lemon.cla.converter;

import org.lemon.cla.enums.WeekdayEnum;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;

@Component
class WeekdayEnumConverter implements Converter<String, WeekdayEnum> {
    @Override
    public WeekdayEnum convert(String source) {
        return WeekdayEnum.fromDescription(source);
    }
}